package com.ai.entity.network;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 收到L1发送的电文内容
 * @Author jiaok
 * @Date 2023-06-20 10:48
 */
@Data
@Setter
@Getter
public class L1ToIdentifySysMessage  implements Serializable {

    @ApiModelProperty("电文长度")
    private Integer telLen;

    @ApiModelProperty("电文号")
    private Integer telId;

    @ApiModelProperty("计划板坯号")
    private String planNo;


    @ApiModelProperty("指令状态")
    private Integer state;

    @ApiModelProperty("0~9999,每次加一，循环计数")
    private Integer counter;// 心跳电文

    @ApiModelProperty("炉门编号")
    private Integer doorNum;

    @ApiModelProperty("预留字段")
    private String spare;


    @ApiModelProperty("是否为心跳信号")
    private boolean isHeartBeat;

    @ApiModelProperty("信号来源")
    private String clientIp;

    @ApiModelProperty("端口")
    private Integer sourcePort;

    @ApiModelProperty("netty客户端code")
    private String nettyCode;


    @ApiModelProperty("plc信號")
    private String plcSignal;

    @ApiModelProperty("第一个位置是否有钢  1有钢、0无钢")
    private Integer frontStatus;

    @ApiModelProperty("第一个位置钢坯ID 0无钢坯ID、有值对应钢板ID")
    private int frontNumId;

    @ApiModelProperty("第二个位置是否有钢   1有钢、0无钢")
    private Integer backStatus;

    @ApiModelProperty("第二个位置钢坯ID  0无钢坯ID、有值对应钢板ID")
    private int backNumId;


}
